package com.knowledge.plus.设计模式.适配器模式;

/**
 * 适配器
 *
 * @author TPF
 * @since 2023/12/12
 */
class PersonWithCowTranslator extends Person {

    public PersonWithCowTranslator(String name) {
        super(name);
    }

    public void talkWithCow(Cow cow) {
        System.out.println(this.getName() + "(人)正在与" + cow.getName() + "(牛)交流...");
    }

}
